﻿//05.Write a program to convert hexadecimal numbers to binary numbers (directly).

using System;

namespace HexadecimailToBinary
{
    class HexadecimailToBinary
    {
        static void Main()
        {
            Console.Write("Enter a hexadecimal number: ");
            string hexNumber = Console.ReadLine();
            
            string binaryNum = Convert.ToString(Convert.ToInt32(hexNumber, 16), 2);
            Console.WriteLine("Hexadecimal value = {0}, binary value = {1}.", hexNumber, binaryNum);
        }
    }
}
